$(function() {
    var form = layui.form;
    form.render('select');
    getAriticle();

    function getAriticle() {
        $.ajax({
            type: 'GET',
            url: '/my/article/list',
            data: {
                pagenum: 1, //页码值
                pagesize: 10, //每页显示多少条数据
            },
            success: function(res) {
                if (res.status === 0) {
                    $('tbody').html(template('tpl-article', res));
                }
            },
        });
    }
});